#include "udp_server.hpp"
#include "Log.hpp"
#include <iostream>

int main(int argc, char *argv[])
{
    if (argc != 2)
    {
        Usage(argv[0]);
        return 1;
    }
    // std::string ip = argv[1];
    uint16_t port = std::stoi(argv[1]);
    // UdpServer us(FuncDefault, port);
    UdpServer us(ExcuteCommand, port);
    us.Init();
    us.Start();
}